<!--
  #%L
  OfficeFloor
  %%
  Copyright (C) 2005 - 2020 Daniel Sagenschneider
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU Affero General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #L%
  -->

<html>
<head>
<title>OfficeFloor Install</title>
<meta http-equiv="Content-Type"
	content="text/html; charset=windows-1252">
<style>
body {
	background: linear-gradient(to bottom right, #BBE0FF, #FFF);
	color: black;
}

.title-text {
	margin-left: 80px;
}

.title-text>span {
	font-size: 3em;
	font-family: courier;
	font-weight: 100;
	color: blue;
}

.title-img {
	height: 6em;
	margin-top: -30px;
	margin-bottom: 3em;
}

.step {
	font-size: large;
}

.instruction {
	padding-left: 5em;
}

.note {
	font-size: small;
	padding-left: 8em;
}

.code {
	font-family: courier;
}

.placeholder {
	color: blue;
}

ol {
	padding-left: 7em;
}

p {
	line-height: 250%;
}

img {
	position: relative;
	bottom: -0.5em;
}
</style>
</head>
<body>
	<div class="title-text">
		<span>&nbsp;Install</span>
	</div>
	<div class="title-img">
		<a href="./index.html" target="_blank"><img
			src="http://officefloor.net/images/OfficeFloorBannerImage.png" /></a>
	</div>
	<p>OfficeFloor plug-ins are available in:</p>

	<ul>
		<li><a href="#intellij">IntelliJ</a></li>
		<li><a href="#eclipse">Eclipse</a></li>
	</ul>
	<p>
		We are happy to look to support other IDEs. However, will do this
		based on interest. Therefore, please add (or up vote) issue at <a
			href="https://github.com/officefloor/OfficeFloor/issues"
			target="_blank">OfficeFloor Support</a> to support your IDE.
	</p>
	<p>
		If any issues in installation, see <a
			href="http://www.officefloor.net/getting-help.html" target="_blank">getting
			help</a>.
	</p>
	<br />


	<hr />
	<h1>
		<a name="intellij">IntelliJ</a>
	</h1>

	<p class="step">
		<strong>Step 1</strong>: Install the latest version of <a
			href="https://www.jetbrains.com/idea/download" target="_blank">IntelliJ</a>
	</p>

	<p class="step">
		<strong>Step 2</strong>: Within IntelliJ open File -&gt; Settings
		-&gt; Plugins -&gt; Marketplace
	</p>

	<p class="step">
		<strong>Step 3</strong>: Search for <span class="code">OfficeFloor</span>
	</p>

	<p class="step">
		<strong>Step 4</strong>: Install (and restart)
	</p>

	<p class="step">
		<strong>Step 5</strong>: build your application with OfficeFloor
	</p>
	<p class="instruction">
		More information is available in the <a
			href="http://officefloor.net/tutorials" target="_blank">tutorials</a>
		to start developing with <a href="http://officefloor.net/"
			target="_blank">OfficeFloor</a>
	</p>


	<hr />
	<h1>
		<a name="eclipse">Eclipse</a>
	</h1>

	<p class="step">
		<strong>Step 1</strong>: install latest version of <a
			href="https://www.eclipse.org/downloads/" target="_blank">Eclipse</a>
	</p>

	<p class="step">
		<strong>Step 2</strong>: ensure JavaFx available on Eclipse class
		path. (Note: Eclipse requires JavaFx to be specifically installed)
	</p>
	<p class="instruction">
		<strong>Java 11 (and above)</strong> where JavaFx no longer part of
		Java installation:
	</p>
	<ol>
		<li>Download and install/unzip the JavaFX SDK from <a
			href="https://openjfx.io" target="_blank">Open JavaFx</a></li>
		<li>Add the following two lines to eclipse.ini file (located in
			Eclipse installation) with location of JavaFx SDK substituted:
	</ol>
	<p class="instruction">
		<span class="code">-Dosgi.framework.extensions=org.eclipse.fx.osgi</span><br />
		<span class="code">-Defxclipse.java-modules.dir=<span
			class="placeholder">&lt;path to JavaFx SDK lib folder&gt;</span></span>
	</p>
	<p class="instruction">
		<strong>Java 9/10</strong> add the following to eclipse.ini file
		(located in Eclipse installation):
	</p>
	<p class="instruction">
		<span class="code">-Dosgi.framework.extensions=org.eclipse.fx.osgi</span>
	</p>
	<p class="instruction">
		<strong>Java 8</strong> ensure jfxrt.jar is installed in the lib
		folder (available in Oracle Java 8 installation)
	</p>
	<p class="note">Older Java versions on linux may only support GTK2.
		To resolve add the following environment variable:</p>
	<p class="note">
		<span class="code">export SWT_GTK3=0</span>
	</p>

	<p class="step">
		<strong>Step 3</strong>: drag the <a
			href="http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=32712"
			class="drag"
			title="Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client"><img
			typeof="foaf:Image" class="img-responsive"
			src="https://marketplace.eclipse.org/sites/all/themes/solstice/public/images/marketplace/btn-install.png"
			alt="Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client" /></a>
		button to your Eclipse IDE to install <a
			href="http://officefloor.net/" target="_blank">OfficeFloor</a>
	</p>
	<p class="instruction">
		Should this not find the <span class="code">OfficeFloor</span>
		features, please manually install with following steps:
	</p>
	<ol>
		<li>Within your Eclipse IDE go to install new software (typically
			Help -&gt; Install New Software ...)</li>
		<li>Add the OfficeFloor update site: <span class="code">http://officefloor.net/update</span></li>
		<li>Check <span class="code">OfficeFloor</span> and install
		</li>
	</ol>

	<p class="step">
		<strong>Step 4</strong>: build your application with OfficeFloor
	</p>
	<p class="instruction">
		More information is available in the <a
			href="http://officefloor.net/tutorials" target="_blank">tutorials</a>
		to start developing with <a href="http://officefloor.net/"
			target="_blank">OfficeFloor</a>
	</p>

	<script type="text/javascript">
		// Google
		var _gaq = _gaq || [];
		_gaq.push([ '_setAccount', 'UA-23477455-1' ]);
		_gaq.push([ '_trackPageview' ]);

		(function() {
			var ga = document.createElement('script');
			ga.type = 'text/javascript';
			ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl'
					: 'http://www')
					+ '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0];
			s.parentNode.insertBefore(ga, s);
		})();
	</script>

</body>
</html>
